// 用户相关路由模块
import express from 'express'
import { login, regUser } from '../router_handler/user.js'
import expressJoi from '../utils/expressjoi.js'
import { reg_login_schema } from '../schema/schema-user.js'
const userRouter = express.Router()
// 注册接口
userRouter.post('/reguser',expressJoi(reg_login_schema),regUser)
// 登录接口
userRouter.post('/login',expressJoi(reg_login_schema),login)
export default userRouter